package com.newland.esp.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newland.esp.entity.user.UserEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @param
 * @author lw
 * @descripe
 * @date 2021/8/13 21:15
 * @Version 1.0
 **/
@Repository
public interface UserMapper extends BaseMapper<UserEntity> {

    //不写@Select 需要去.xml中写（==不用写 MP自带==）
//    @Select("select * from star where id = #{id}")
    UserEntity selectStarById(@Param("id") String id);

//    不用写 MP自带
//    int addStar(UserEntity userEntity);
}
